<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EDUKIT Developers: Класс TestQuestion</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="ukit.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EDUKIT Developers
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Руководство программиста</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Создано системой Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Поиск');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_i_e_p.html">IEP</a></li><li class="navelem"><a class="el" href="namespace_i_e_p_1_1_structures.html">Structures</a></li><li class="navelem"><a class="el" href="class_i_e_p_1_1_structures_1_1_test_question.html">TestQuestion</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Открытые члены</a> &#124;
<a href="#pri-attribs">Закрытые данные</a>  </div>
  <div class="headertitle">
<div class="title">Класс TestQuestion</div>  </div>
</div><!--header-->
<div class="contents">

<p>Класс описывает вопрос к тесту  
 <a href="class_i_e_p_1_1_structures_1_1_test_question.html#details">Подробнее...</a></p>

<p><code>#include &quot;iep/structures/testquestion.php&quot;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Открытые члены</h2></td></tr>
<tr class="memitem:a4e26f66d387dfde291325e8bb50febf0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_structures_1_1_test_question.html#a4e26f66d387dfde291325e8bb50febf0">__construct</a> (string $question, string $r_answer, array $answers=array())</td></tr>
<tr class="separator:a4e26f66d387dfde291325e8bb50febf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4759f09aa1f00dcd588ccba0fafcc0c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_structures_1_1_test_question.html#ae4759f09aa1f00dcd588ccba0fafcc0c">setQuestionID</a> (int $id)</td></tr>
<tr class="memdesc:ae4759f09aa1f00dcd588ccba0fafcc0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Задаёт идентификатор вопроса  <a href="#ae4759f09aa1f00dcd588ccba0fafcc0c">Подробнее...</a><br /></td></tr>
<tr class="separator:ae4759f09aa1f00dcd588ccba0fafcc0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af76ad2a1d23a6c6c4b33c427430877f3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_structures_1_1_test_question.html#af76ad2a1d23a6c6c4b33c427430877f3">getQuestionID</a> ()</td></tr>
<tr class="memdesc:af76ad2a1d23a6c6c4b33c427430877f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Возвращает идентификатор вопроса  <a href="#af76ad2a1d23a6c6c4b33c427430877f3">Подробнее...</a><br /></td></tr>
<tr class="separator:af76ad2a1d23a6c6c4b33c427430877f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefe923d83ad382956235c7d5d0ed585f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_structures_1_1_test_question.html#aefe923d83ad382956235c7d5d0ed585f">getQuestion</a> ()</td></tr>
<tr class="memdesc:aefe923d83ad382956235c7d5d0ed585f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Возвращает вопрос  <a href="#aefe923d83ad382956235c7d5d0ed585f">Подробнее...</a><br /></td></tr>
<tr class="separator:aefe923d83ad382956235c7d5d0ed585f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8b4db7a344e3e347c5ec6cf688149b6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_structures_1_1_test_question.html#ae8b4db7a344e3e347c5ec6cf688149b6">setAnswers</a> (array $answers)</td></tr>
<tr class="memdesc:ae8b4db7a344e3e347c5ec6cf688149b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Задаёт ответы на вопрос  <a href="#ae8b4db7a344e3e347c5ec6cf688149b6">Подробнее...</a><br /></td></tr>
<tr class="separator:ae8b4db7a344e3e347c5ec6cf688149b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8331839d823f3debf82550182d39a951"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_structures_1_1_test_question.html#a8331839d823f3debf82550182d39a951">getAnswers</a> ()</td></tr>
<tr class="memdesc:a8331839d823f3debf82550182d39a951"><td class="mdescLeft">&#160;</td><td class="mdescRight">Возвращает все ответы на вопрос  <a href="#a8331839d823f3debf82550182d39a951">Подробнее...</a><br /></td></tr>
<tr class="separator:a8331839d823f3debf82550182d39a951"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4a8f34e476c1493890dcfa2efb77a58"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_structures_1_1_test_question.html#aa4a8f34e476c1493890dcfa2efb77a58">getRAnswer</a> ()</td></tr>
<tr class="memdesc:aa4a8f34e476c1493890dcfa2efb77a58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Возвращает правильный ответ на вопрос  <a href="#aa4a8f34e476c1493890dcfa2efb77a58">Подробнее...</a><br /></td></tr>
<tr class="separator:aa4a8f34e476c1493890dcfa2efb77a58"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Закрытые данные</h2></td></tr>
<tr class="memitem:ae97941710d863131c700f069b109991e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_structures_1_1_test_question.html#ae97941710d863131c700f069b109991e">$id</a></td></tr>
<tr class="memdesc:ae97941710d863131c700f069b109991e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Идентификатор вопроса  <a href="#ae97941710d863131c700f069b109991e">Подробнее...</a><br /></td></tr>
<tr class="separator:ae97941710d863131c700f069b109991e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf0d1ba8b3999333306bf1a4fd363e93"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_structures_1_1_test_question.html#acf0d1ba8b3999333306bf1a4fd363e93">$question</a></td></tr>
<tr class="memdesc:acf0d1ba8b3999333306bf1a4fd363e93"><td class="mdescLeft">&#160;</td><td class="mdescRight">Вопрос  <a href="#acf0d1ba8b3999333306bf1a4fd363e93">Подробнее...</a><br /></td></tr>
<tr class="separator:acf0d1ba8b3999333306bf1a4fd363e93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2fab2b159e5c7024c9d4083cc1ed70e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_structures_1_1_test_question.html#ab2fab2b159e5c7024c9d4083cc1ed70e">$answers</a></td></tr>
<tr class="memdesc:ab2fab2b159e5c7024c9d4083cc1ed70e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ответы  <a href="#ab2fab2b159e5c7024c9d4083cc1ed70e">Подробнее...</a><br /></td></tr>
<tr class="separator:ab2fab2b159e5c7024c9d4083cc1ed70e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30c44cef2ca5b605298bbfa420b9fd6a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_e_p_1_1_structures_1_1_test_question.html#a30c44cef2ca5b605298bbfa420b9fd6a">$r_answer</a></td></tr>
<tr class="memdesc:a30c44cef2ca5b605298bbfa420b9fd6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Правильный ответ  <a href="#a30c44cef2ca5b605298bbfa420b9fd6a">Подробнее...</a><br /></td></tr>
<tr class="separator:a30c44cef2ca5b605298bbfa420b9fd6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Подробное описание</h2>
<div class="textblock"><p>Класс описывает вопрос к тесту </p>
<dl class="section author"><dt>Автор</dt><dd>pmswga </dd></dl>
<dl class="section version"><dt>Версия</dt><dd>1.0 </dd></dl>
</div><h2 class="groupheader">Конструктор(ы)</h2>
<a id="a4e26f66d387dfde291325e8bb50febf0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e26f66d387dfde291325e8bb50febf0">&#9670;&nbsp;</a></span>__construct()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__construct </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>$question</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>$r_answer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">array&#160;</td>
          <td class="paramname"><em>$answers</em> = <code>array()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Аргументы</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">$question</td><td>- Вопрос </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">$r_answer</td><td>- Правильный ответ </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">$answers</td><td>- Ответы </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Заметки</dt><dd>См. формат свойства $this-&gt;answers </dd></dl>

</div>
</div>
<h2 class="groupheader">Методы</h2>
<a id="a8331839d823f3debf82550182d39a951"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8331839d823f3debf82550182d39a951">&#9670;&nbsp;</a></span>getAnswers()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getAnswers </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Возвращает все ответы на вопрос </p>
<dl class="section return"><dt>Возвращает</dt><dd>Ответы на вопрос </dd></dl>
<dl class="section note"><dt>Заметки</dt><dd>Ассоциативный массив </dd></dl>

</div>
</div>
<a id="aefe923d83ad382956235c7d5d0ed585f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefe923d83ad382956235c7d5d0ed585f">&#9670;&nbsp;</a></span>getQuestion()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getQuestion </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Возвращает вопрос </p>
<dl class="section return"><dt>Возвращает</dt><dd>Вопрос </dd></dl>

</div>
</div>
<a id="af76ad2a1d23a6c6c4b33c427430877f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af76ad2a1d23a6c6c4b33c427430877f3">&#9670;&nbsp;</a></span>getQuestionID()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getQuestionID </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Возвращает идентификатор вопроса </p>
<dl class="section return"><dt>Возвращает</dt><dd>Идентификатор вопроса </dd></dl>

</div>
</div>
<a id="aa4a8f34e476c1493890dcfa2efb77a58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4a8f34e476c1493890dcfa2efb77a58">&#9670;&nbsp;</a></span>getRAnswer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getRAnswer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Возвращает правильный ответ на вопрос </p>
<dl class="section return"><dt>Возвращает</dt><dd>Правильный ответ </dd></dl>

</div>
</div>
<a id="ae8b4db7a344e3e347c5ec6cf688149b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8b4db7a344e3e347c5ec6cf688149b6">&#9670;&nbsp;</a></span>setAnswers()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">setAnswers </td>
          <td>(</td>
          <td class="paramtype">array&#160;</td>
          <td class="paramname"><em>$answers</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Задаёт ответы на вопрос </p>
<dl class="section return"><dt>Возвращает</dt><dd>Ответы </dd></dl>
<dl class="section note"><dt>Заметки</dt><dd>Ассоциативный массив </dd></dl>

</div>
</div>
<a id="ae4759f09aa1f00dcd588ccba0fafcc0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4759f09aa1f00dcd588ccba0fafcc0c">&#9670;&nbsp;</a></span>setQuestionID()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">setQuestionID </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>$id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Задаёт идентификатор вопроса </p>
<dl class="params"><dt>Аргументы</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">$id</td><td>- Идентификатор вопроса </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Поля</h2>
<a id="ab2fab2b159e5c7024c9d4083cc1ed70e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2fab2b159e5c7024c9d4083cc1ed70e">&#9670;&nbsp;</a></span>$answers</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">$answers</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Ответы </p>
<dl class="section note"><dt>Заметки</dt><dd>Представляет собой ассоциативный массив в формате <div class="fragment"><div class="line"><a class="code" href="class_i_e_p_1_1_structures_1_1_test_question.html#ab2fab2b159e5c7024c9d4083cc1ed70e">$answers</a> = array(</div><div class="line">  [0] =&gt; array(</div><div class="line">    <span class="stringliteral">&quot;id_answer&quot;</span> =&gt; ,</div><div class="line">    <span class="stringliteral">&quot;answer&quot;</span>    =&gt; </div><div class="line">  ),</div><div class="line">  ...</div><div class="line">);</div></div><!-- fragment --> </dd></dl>

</div>
</div>
<a id="ae97941710d863131c700f069b109991e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae97941710d863131c700f069b109991e">&#9670;&nbsp;</a></span>$id</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">$id</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Идентификатор вопроса </p>

</div>
</div>
<a id="acf0d1ba8b3999333306bf1a4fd363e93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf0d1ba8b3999333306bf1a4fd363e93">&#9670;&nbsp;</a></span>$question</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">$question</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Вопрос </p>

</div>
</div>
<a id="a30c44cef2ca5b605298bbfa420b9fd6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30c44cef2ca5b605298bbfa420b9fd6a">&#9670;&nbsp;</a></span>$r_answer</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">$r_answer</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Правильный ответ </p>

</div>
</div>
<hr/>Объявления и описания членов класса находятся в файле:<ul>
<li>iep/structures/<a class="el" href="testquestion_8class_8php.html">testquestion.class.php</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Документация по EDUKIT Developers. Последние изменения: Вт 17 Окт 2017 18:09:13. Создано системой &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
